package com.xiaozhichao.javaapi.base.trycatch;

import org.junit.Test;

public class TryCatchDemo {

    public static String tryCatchMethod(){
        try{
            System.out.println("common ...");
            Integer.parseInt("ss");
            return "common return";
        }catch (Exception e){
            System.out.println("Exception ...");
            /*Integer.parseInt("ss");*/
            return "Exception";
        }finally {
            System.out.println("final ...");
            Integer.parseInt("ss");
            return "final";
        }
    }

    @Test
    public void test(){
        System.out.println(tryCatchMethod());

    }
}
